
#ifndef LUA_INTERPOLATION_H
#define LUA_INTERPOLATION_H
#include <luaMathEx/config.h>

namespace math{// tolua_export

LUA_MATH_EX_EXPORT_API
double interpolation(int n,const double arrx[],const double arry[],double x);

LUA_MATH_EX_EXPORT_API
double interpolation(int n,const double arrx[],const double arry[],double x,int &nlow, int& nhigh);

LUA_MATH_EX_EXPORT_API
double array_max(int n,const double arrx[],int& idx);

LUA_MATH_EX_EXPORT_API
double array_min(int n,const double arrx[],int& idx);

LUA_MATH_EX_EXPORT_API
double array_max(int n,const double arrx[]);

LUA_MATH_EX_EXPORT_API
double array_min(int n,const double arrx[]);

LUA_MATH_EX_EXPORT_API
double norphs(double phs);// tolua_export

/*/////////////
double interpolation(int n,double arrx[n],double arry[n],double x);// tolua_export
double array_max(int n,double arrx[n],int& idx);// tolua_export
double array_min(int n,double arrx[n],int& idx);// tolua_export
double array_max(int n,double arrx[n]);// tolua_export
double array_min(int n,double arrx[n]);// tolua_export
//*////////////////
};// tolua_export
#endif
